import 'package:flutter/material.dart';

class TimeInfo extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => new TimeInfoState();
}

class TimeInfoState extends State<TimeInfo> {
  @override
  Widget build(BuildContext context) {
    return new Container(
      padding: const EdgeInsets.all(8.0),
      child: new Column(
        children: [
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('城市名称'),
                flex: 2,
              ),
              Expanded(
                child: Text('乌鲁木齐'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('当前时间'),
                flex: 2,
              ),
              Expanded(
                child: Text('2019-03-13 17:47'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('时辰'),
                flex: 2,
              ),
              Expanded(
                child: Text('申'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('经络'),
                flex: 2,
              ),
              Expanded(
                child: Text('膀胱'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Row(
            children: <Widget>[
              Expanded(
                child: Text('正午时间'),
                flex: 2,
              ),
              Expanded(
                child: Text('2019-03-13 17:47'),
                flex: 8,
              ),
            ],
          ),
          new Divider(color:Colors.grey[500]),
          new Expanded(//fill full colum
            child: new Row(
              crossAxisAlignment: CrossAxisAlignment.start,
              children: <Widget>[
                new Expanded(// fil full row
                  child: DataTable(columns:  [
                    DataColumn(label: Text('穴位')),
                    DataColumn(label: Text('穴位图')),
                    DataColumn(label: Text('记录')),
                  ], rows: [
                    DataRow(cells: [
                      DataCell(Text('11')),
                      DataCell(Text('111')),
                      DataCell(Text('1111')),
                    ]),
                    DataRow(cells: [
                      DataCell(Text('22')),
                      DataCell(Text('222')),
                      DataCell(Text('2222')),
                    ]),
                  ]),
                ),
              ],
            ),
          ),
        ],
      ),
    );
  }
}
